﻿#region

using System.Collections.Generic;
using BusinessObjects;
using DataAccessLayer;

#endregion

namespace BusinessLogicLayer
{
    public static class PickBookingBLL
    {
        public static void NewPickBooking(PickBooking booking)
        {
            PickBookingDAL.NewPickBooking(booking);
        }

        public static void UpdatePickBooking(PickBooking booking)
        {
            PickBookingDAL.UpdatePickBooking(booking);
        }

        /// <summary>
        ///     Get all bookings by booking Id
        /// </summary>
        /// <param name="bookingId">Represent's the booking Id</param>
        /// <returns>Booking</returns>
        public static PickBooking GetBooking(int bookingId)
        {
            return PickBookingDAL.GetBooking(bookingId);
        }

        public static List<PickBooking> GetAllPickBookings(int customerId)
        {
            return PickBookingDAL.GetAllPickBookings(customerId);
        }
    }
}